import Vue from 'vue';
import VueRouter from 'vue-router';
import Intro from '../views/introduce.vue';
import Gen from '../views/gen_inequ.vue';
import Solve from '../views/solve_inequ.vue';

Vue.use(VueRouter);

const routes = [
  {
    path: '/',
    redirect: '/0', // 这里设置根路径重定向到'/1'
  },
  { path: '/0', component: Intro },
  { path: '/1', component: Gen },
  { path: '/2', component: Solve },
];

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
});

export default router;
